//
//  DataManager.h
//  MoRan
//
//  Created by MoRan  on 2023.
//  Copyright © 2023 MoRan . All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YTKKeyValueStore.h"
#import "MRNotificationModel.h"

@interface DataManager : NSObject

#pragma mark - 初始化

- (void)initTable;

- (NSString*)getGuid;

#pragma mark - 添加数据

- (void)addNotificationDataWithModel:(MRNotificationModel *)model;

#pragma mark - 查询数据

//获取所有数据
- (NSArray *)getNotificationArrayWithIndex:(NSInteger)index;

#pragma mark - 删除

//删除指定id数据
- (void)deleteNotificationDataDicWithNotificationId:(NSString *)notificationId;

+ (instancetype)shareInstance;

#define kDataManager [DataManager shareInstance]

@end
